/* 统一变量 */
:root {
    --primary-color: #409EFF;
    --secondary-color: #67C23A;
    --dark-color: #303133;
    --light-color: #f5f7fa;
    --text-color: #606266;
    --border-color: #EBEEF5;
}

/* Home页面特殊样式 - 强制覆盖全局高度限制 */
.home-container {
    min-height: 100vh !important;
    height: auto !important;
    overflow: visible !important;
}

.home-container #app {
    height: auto !important;
    overflow: visible !important;
    width: 100% !important;
}

/* 直接针对body和html的覆盖 */
body.home-page,
html.home-page {
    height: auto !important;
    overflow: visible !important;
    width: 100% !important;
}

/* 确保home页面的所有内容都可以正常滚动 */
.home-container * {
    overflow: visible;
}

/* 强制覆盖全局样式的最高优先级选择器 */
html.home-page body.home-page #app.home-container,
html.home-page #app.home-container,
body.home-page #app.home-container {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* 确保页面可以滚动 */
html.home-page,
body.home-page {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header:hover {
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-container {
    flex: 1;
    margin: 0 40px;
}

.nav-menu {
    background: transparent !important;
    border: none !important;
    height: 60px;
}

.nav-menu .el-menu-item,
.nav-menu .el-submenu__title {
    color: var(--dark-color) !important;
    background: transparent !important;
    border-radius: 0 !important;
    transition: color 0.3s;
}

.nav-menu .el-menu-item:hover,
.nav-menu .el-menu-item.is-active,
.nav-menu .el-submenu__title:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
    transform: none;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.login-btn,
.register-btn {
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    letter-spacing: 0.5px;
    transition: color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.login-btn {
    margin-right: 20px;
    padding: 12px 28px;
}

.login-btn:hover {
    color: #2563eb !important;
    transform: translateY(-2px);
}

.register-btn {
    padding: 12px 32px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hero-section {
    margin-top: 150px;
    /* 增加顶部间距，避免轮播图紧贴导航栏 */
    position: relative;
    overflow: hidden;
    height: 50vh;

}

.swiper-container {
    width: 90%;
    height: 90%;
    border-radius: 25px;
    /* overflow: hidden; */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.slide-1 {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.slide-2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.slide-3 {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.slide-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.slide-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

.cta-button {
    padding: 14px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05) !important;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
    width: 30px !important;
    border-radius: 6px !important;
}

.features,
.solutions {
    padding: 80px 0;
    width: 100%;
    background: #f9fafc;
}

.features-grid,
.solutions-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.solutions-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 50px;
}

.feature-card,
.solution-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.07);
    padding: 40px 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.solution-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(64, 158, 255, 0.18);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.feature-card h3,
.solution-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p,
.solution-content p {
    color: var(--text-color);
    font-size: 1rem;
}

.solution-content {
    flex: 1;
    padding: 40px 32px;
    text-align: left;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 500;
}

.solution-image {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    background: #e6f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 16px 16px 0;
}

.footer {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 100px;
    /* padding: 0 ; */
}

.footer-top {
    padding: 60px 50px 30px 50px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.footer-top>.container-footer {
    max-width: 1200px;
    width: 100%;
    /* margin: 0 auto;
    padding: 0 20px; */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-right: 20px;
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.footer-about {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 15px 0 10px 0;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #3b82f6;
}

.footer-col h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #3b82f6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 1rem;
}

.contact-info i {
    /* margin-right: 10px; */
    color: #3b82f6;
    font-size: 1.1rem;
}

.footer-bottom {
    background: #020617;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.copyright {
    color: #64748b;
    font-size: 0.95rem;
}

/* Swiper 自定义左右按钮淡灰色+间距 */
.swiper-button-next,
.swiper-button-prev {
    color: #cbd5e1 !important;
    /* background: rgba(255,255,255,0.85) !important; */
    box-shadow: none !important;
    /* border-radius: 50%; */
    /* width: px; */
    /* top: 50%; */
    /* transform: translateY(-50%); */
}

.swiper-button-next:after,
.swiper-button-prev:after {
    color: #cbd5e1 !important;
    font-size: 22px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .header-content {
        padding: 0 10px;
    }

    .nav-container {
        margin: 0 10px;
    }

    .hero-section {
        height: 400px;
    }

    .features,
    .solutions {
        padding: 40px 0;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        height: auto;
    }

    .hero-section {
        /* height: 260px; */
        margin-top: 60px;
    }

    .slide-content h3 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .features,
    .solutions {
        padding: 20px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-top {
        padding: 20px 0 5px 0;
    }
}